package com.zgw.his.design.model.widgets;

import org.eclipse.swt.SWT;
import org.eclipse.wb.internal.core.model.presentation.IObjectPresentation;
import org.eclipse.wb.internal.core.xml.model.EditorContext;
import org.eclipse.wb.internal.core.xml.model.creation.CreationSupport;
import org.eclipse.wb.internal.core.xml.model.description.ComponentDescription;
import org.eclipse.wb.internal.xwt.model.widgets.StylePresentation;

public class MedicalButtonInfo extends MedicalControlInfo {

	// //////////////////////////////////////////////////////////////////////////
	//
	// Constructor
	//
	// //////////////////////////////////////////////////////////////////////////
	public MedicalButtonInfo(EditorContext context,
			ComponentDescription description, CreationSupport creationSupport)
			throws Exception {
		super(context, description, creationSupport);
	}

	// //////////////////////////////////////////////////////////////////////////
	//
	// Presentation
	//
	// //////////////////////////////////////////////////////////////////////////
	private final IObjectPresentation m_presentation = new StylePresentation(
			this) {
		@Override
		protected void initImages() throws Exception {
			addImage(SWT.CHECK,
					"wbp-meta/org/eclipse/swt/widgets/Button_check.gif");
			addImage(SWT.RADIO,
					"wbp-meta/org/eclipse/swt/widgets/Button_radio.gif");
		}
	};

	@Override
	public IObjectPresentation getPresentation() {
		return m_presentation;
	}

}
